import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Vue from 'vue';
import App from './App.vue';
import router from './router';
Vue.config.productionTip = false
Vue.use(ElementUI);
//main.js统一导入axiso
import axios from 'axios';

//axios请统一前缀
axios.defaults.baseURL = 'http://localhost:8080/';
//axiso起个别名,$axiso,每个vue文件不用再import,直接使用this.$axiso
Vue.prototype.$axios=axios

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
